<template>
	<view>
		<!-- <view class="prod-box u-border-bottom"><view class="u-font-26 c-66 u-m-t-8">请在120分钟内完成支付，否则该订单将被自动取消</view></view> -->
		<view class="spec-box">
			<view class="spec-title u-border-bottom">{{vuex_business.name}}</view>
			<view v-for="(item, index) in selectList" :key="index">
				<view class="pect_item_box u-border-bottom">
					<view class="spec-item">
						<!-- #ifndef MP-ALIPAY -->
						<image class="spec-img" :src="item.product_img" mode="aspectFil"></image>
							<!-- #endif -->
						<!-- #ifdef MP-ALIPAY -->
						<image class="spec-img" :src="item.product_img" ></image>
						<!-- #endif -->
						<view class="spec-info">
							<view class="spec-name u-line-1 u-font-28">{{ item.product_name }}</view>
							<view class="spec-stand u-line-1 u-font-24">{{ item.standard || '' }}</view>
							<view class="u-flex">
								<view class="spec-price">
									<text class="spec_sign">￥</text>
									<text class="spec_price_num">{{ $price(item.price) }}</text>
									<text>x{{ item.num }}</text>
								</view>
								<template v-if="vuex_user.type == 2 && item.rebate > 0 && vuex_user.threelevel<=0">
									<view class="spec-rebate u-border">
										分享赚 {{ $rebateNum(item.rebate * item.num, vuex_user.commission) }}
									</view>
								</template>
							</view>
						</view>
					</view>
					<!-- 运费的提示信息 -->
					<view class="post_tip" v-if="!checkPick && item.msg">{{ item.msg }}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	components: {},
	data() {
		return {
			remark: ''
		};
	},
	props: {
		selectList: {
			type: Array,
			default: []
		},
		checkPick: {
			type: Boolean,
			default: false
		} // 是否使用了自提地址
	},
	methods: {}
};
</script>

<style scoped lang="scss">
.prod-box {
	width: 100%;
	padding: 24rpx 0;
}
.spec-box {
	width: 100%;

	.spec-title {
		width: 100%;
		height: 90rpx;
		display: flex;
		align-items: center;
		font-size: 32rpx;
		font-weight: bold;
	}
	.pect_item_box {
		padding: 20rpx 0;
		.spec-item {
			width: 100%;
			display: flex;
			font-size: 28rpx;
			.spec-img {
				width: 200rpx;
				height: 200rpx;
				border-radius: 16rpx;
				margin-right: 20rpx;
			}
			.spec-info {
				height: 200rpx;
				flex: 1;
				overflow: hidden;
				display: flex;
				flex-direction: column;
				justify-content: space-around;
				.spec-stand {
					color: #999;
					height: 32rpx;
					line-height: 32rpx;
				}
			}
			.spec-price {
				color: var(--price);
				.spec_sign{
					font-size: 26rpx;
				}
				.spec_price_num{
					font-size: 32rpx;
					margin-right: 14rpx;
				}
			}
			.spec-rebate {
				align-self: flex-start;
				min-width: 80rpx;
				height: 40rpx;
				background-color: $sww-theme-color-opacity;
				display: flex;
				align-items: center;
				justify-content: center;
				color: var(--color);
				font-size: 26rpx;
				border-radius: 6rpx;
				padding: 0 16rpx;
				margin-left: 40rpx;

				&::after {
					border-color: $sww-theme-color-opacity;
					border-radius: 12rpx !important;
				}
			}
			.spec-postage {
				font-size: 24rpx;
				color: #999999;
			}
		}
		.post_tip {
			margin-top: 10rpx;
			color: #c3af24;
			font-size: 26rpx;
		}
	}
}
</style>
